Function Get-ScheduledTaskEX(){ # to avoid name confilt from same function in module ScheduledTasks
    [CmdletBinding()]param(
		[string]$vdi=$env:COMPUTERNAME,
		[string]$task,
		[string]$folder="\",
		[string]$domain="nam",
		[string]$fid="aaadmin",
		[string]$pswd,
		[boolean]$refresh
	)
	Try{
		$stf = Get-TaskFolder $vdi $domain $fid $pswd $folder $refresh
		If( ![string]::IsNullOrWhiteSpace( $task) ){
			return $stf.GetTasks($task) # regex match, case sensitive
		}else{
			return $stf.GetTasks(".")  # get all tasks
		}
	}Catch{
		throw $_
	}Finally{}
}
